package com.rxw.nutmall.oss.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

@Data
@Component
@RefreshScope
public class NacosParameter {

    //ossType
    @Value("${ossType}")
    private String ossType;

    //ossUrl
    @Value("${ossUrl}")
    private String ossUrl;

    //ossAccessKey
    @Value("${ossAccessKey}")
    private String accessKey;

    //ossSecretKey
    @Value("${ossSecretKey}")
    private String secretKey;

    //ossBucket
    @Value("${ossBucket}")
    private String bucket;
}
